package com.immac.leejc.bufferedinputstream;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Main {
	public static void main(String[] args) throws FileNotFoundException {
		FileInputStream fileInStream = new FileInputStream(new File("text/LePetitPrince.txt"));
		LeeJCBufferedInputStream leeJCBufferedReader = new LeeJCBufferedInputStream(fileInStream);

		try {
			for (int i = 0; i < Integer.MAX_VALUE; i++) {
				System.out.print((char)leeJCBufferedReader.read());
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
